Posts

Post not yet marked as solved
2 Replies
When the user leaves the app but does not close it, the app goes in the background, and when they reopen it, it goes into foreground again without restart. Isn’t this your applicationResumeTime? This would explain the hours-long times 😉
Post not yet marked as solved
5 Replies
Just a quick answer before I post a long one: I also stumbled upon this problem, and I managed to create a Minimal Reproductible Example. I'm going to create a GitHub repository with information and all, but basically the steps are: (Running XCode Version 13.2.1 (13C100)) Create a fresh SwiftUI app Edit the main App to match import SwiftUI import CoreLocationUI @main struct CLLocationButtonTesterApp: App { var body: some Scene { WindowGroup { LocationButton(action: {}) } } } Run the app → no problem Create an empty file Add French localization to the app Add French localization to the file (you can even remove any other *.lproj folder) Run the app → you get Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: width && height' terminating with uncaught exception of type NSException CoreSimulator 783.5 - Device: iPhone 13 (B8BF9672-9A4F-4E59-83EC-4844992B74C4) - Runtime: iOS 15.2 (19C51) - DeviceType: iPhone 13 Tip: Clean the build folder between each test, otherwise you might encounter caching issues 😉
Post not yet marked as solved
1 Replies
Same problem here, when exporting localizations of an iOS app. The problem occurs when the compiler builds the CodableCSV package (I had to activate "Use Compiler to Extract Swift Strings", otherwise it works but my localised strings are not found).
Post not yet marked as solved
2 Replies
I have the same problem, and it's quite annoying 😕 As a workaround, I use the package as a local dependency in a full app project. Here is the tip: I created a PreviewTester PreviewProvider, in which I reference a preview I want to see (requires to make it public, which I don't like at all, but I just don't commit it). struct PreviewTester: PreviewProvider { static var previews: some View { YourView_Previews.previews } } Then I start the preview, pin it, and edit the view in the package source file.
Post not yet marked as solved
20 Replies
I have the same problem… it's really annoying 😕 Interestingly, I don't have problems after I turn Wi-Fi off 🤷🏻‍♂️ I can't always do it (i.e. when loading packages), but now I have to do it most of the time if I want to work properly. I hope it'll help you, and I hope next update will fix this.
Post marked as solved
1 Replies
A workaround - https://developer.apple.com/forums/thread/664295 has been shared recently. I tested It and it works. I pushed it to a new "workaround" branch. I hope it will help 🤞🏻